import { createStore } from "vuex";
import themeConfig from "./modules/themeConfig";
import userInfos from "./modules/userInfos";
import tagsViewRoutes from "./modules/tagsViewRoutes";
import routesList from "./modules/routesList";
import requestOldRoutes from "./modules/requestOldRoutes";
import keepAliveNames from "./modules/keepAliveNames";
// import getters from "./getters";
const store = createStore({
  modules: {
    themeConfig,
    userInfos,
    tagsViewRoutes,
    routesList,
    requestOldRoutes,
    keepAliveNames,
  },
  // getters,
});

// export default useStore;

export function useStore() {
  return store;
}
